package com.css.fxfzxczh.modules.disasterSituationDataManage.samPoiData.repository;

import com.css.fxfzxczh.modules.disasterSituationDataManage.samPoiData.entity.SamPoiData;
import com.css.fxfzxczh.modules.disasterSituationDataManage.samPoiData.queryParams.SamPoiDataQuaParams;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface SamPoiDataRepository {
    Map<String, Object> getPage(SamPoiDataQuaParams queParams, int curPage, int pageSize);

    boolean save(SamPoiData samPoiData);

    List<SamPoiData> getSamPoiDataList(SamPoiDataQuaParams queryParams);

    String getMaxNum(String toString);

    SamPoiData findById(String id);

    List<SamPoiData> getSamPoiList(String xsemId);

    void update(SamPoiData samPoiData);

    void delete(String id);

    List<SamPoiData> getSamPoiListByXstmId(String xstmId);

    Map<String, Object> getSamPoiByXsemId(String xsemId, int curPage, int pageSize);

    List<SamPoiData> getAllData(SamPoiDataQuaParams queParams);

    void updateXsemId(String xsemId, String convertedXsemId);

    List<SamPoiData> findBySamplingPointName(String samplingPointName,String xsemId);

    Integer countByXsemId(String xsemId);

    List<SamPoiData> getUnassociatedData(String xsemId);

    void associatedSubarea(List<String> xspdIdList,String xstmId);

    List<SamPoiData> getSamListByType(String type);

    Boolean judPointPosition(String xstmId, BigDecimal longitude, BigDecimal latitude);

    void updateAssociationbyXstmId(String id);
}
